﻿<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true"
    CodeFile="SendPasswordReset.aspx.cs" Inherits="SendPasswordReset" Title="Password Reset" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .Invalid
        {
            background: #FAF1F2 url(Images/error.jpg) no-repeat 10px 10px;
            border: 2px solid #C95A55;
            padding: 10px 20px 20px 55px;
            color: #C95A55;
            font-weight: bold;
            margin: 10px 0;
            text-align: left;
            
        }
    </style>
    <script type="text/javascript">
    function PassRecoverValidate() {
        var txtEmail = document.getElementById('<%= txtEmail.ClientID %>').value;
        var EmailLabel = document.getElementById('<%= EmailLabel.ClientID %>');
        var Errcolor = "red";
        var mycolor = "black";
        var ErrorString = "";

        if (txtEmail == '') {
            EmailLabel.style.color = Errcolor;
            ErrorString = "Error";

        }
        else
            EmailLabel.style.color = mycolor;


        var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
        if (!filter.test(txtEmail)) {
            ErrorString = "Error";
            EmailLabel.style.color = Errcolor;
        }
        else
            EmailLabel.style.color = mycolor;


        if (ErrorString != "") {
            return false;
        }
        return true;
    }
</script>
    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                        <table>
                                            <tr>
                                                <td width="50%" >
                                                    <a
                                                </td>
                                                <td rowspan="5"  width="50%" >
                                                    <asp:Image ID="Iamge1" runat="server" ImageUrl="~/Images/check_your_mail.gif" hight="200px" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <h3>
                                                        Check your email</h3>
                                                </td>
                                                
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>
                                                        One more quick step! Check your email for a note from Zupons, and click the link
                                                        inside to reset your password.</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>
                                                        Didn’t get your password reset email? Be sure to check your spam folder and add
                                                        mail@Zupons.com to your address book to ensure delivery. If you still haven’t
                                                        received your activation email, enter your email below and we’ll send you another.</p>
                                                    <asp:Label ID="EmailLabel" runat="server" Text="Email:"></asp:Label><br />
                                                    <asp:TextBox ID="txtEmail" runat="server" Text="" Width="300px"></asp:TextBox><br />
                                                    <br />
                                                    <br />
                                                    <br />
                                                    <asp:Button ID="PayButton" runat="server" CausesValidation="true" CssClass="OrderDeatil"
                                                        Font-Bold="True" ForeColor="White" Text="Reset Password" Font-Size="12px" OnClick="PayButton_Click"
                                                        ValidationGroup="Passrecovery"  OnClientClick="return PassRecoverValidate();" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                                                        ErrorMessage="You must enter an valid email address." ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                        ValidationGroup="Passrecovery" ForeColor="White">*
                                                    </asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEmail"
                                                        ErrorMessage="Email is required." ToolTip="Email is required." ValidationGroup="Passrecovery"
                                                        ForeColor="White">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
